|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectga.view.streaming.showroom.CameraSettings
public class CameraSettings
Nested Class Summary | |
---|---|
static class |
CameraSettings.Type
Types of perspectives. |
Field Summary | |
---|---|
private float |
aspect
|
private float |
fov
|
private float |
frustumFar
|
private float |
frustumNear
|
private com.jme3.math.Vector3f |
initialLocation
|
private boolean |
isIsometric
|
private com.jme3.math.Vector3f |
lookAtPoint
|
private float |
maxDistance
|
private float |
maxVRotation
|
private float |
minDistance
|
private float |
minVRotation
|
Constructor Summary | |
---|---|
CameraSettings(com.jme3.math.Vector3f initialLocation,
com.jme3.math.Vector3f lookAtPoint,
float minVRotation,
float maxVRotation,
float minDistance,
float maxDistance,
float aspect,
float fov,
float frustumNear,
float frustumFar,
boolean isIsometric)
Instantiates a new camera settings. |
Method Summary | |
---|---|
void |
configureCamera(com.jme3.renderer.Camera cam)
Configures a camera. |
static CameraSettings |
getInRoomSettings(ShowRoom room,
com.jme3.system.AppSettings settings)
Gets the in room perspective settings for a show room. |
static CameraSettings |
getIsometricSettings(ShowRoom room,
com.jme3.system.AppSettings settings)
Gets the isometric perspective settings for a show room. |
com.jme3.math.Vector3f |
getLookAtPoint()
Gets the look at point. |
float |
getMaxDistance()
Gets the maximum distance. |
float |
getMaxVRotation()
Gets the max vertical rotation. |
float |
getMinDistance()
Gets the minimum distance. |
float |
getMinVRotation()
Gets the minimum vertical rotation. |
static CameraSettings |
getOrthographicSettings(ShowRoom room,
com.jme3.system.AppSettings settings)
Gets the orthographic perspective settings for a show room. |
static CameraSettings |
getSettings(CameraSettings.Type type,
ShowRoom room,
com.jme3.system.AppSettings settings)
Gets the settings for a show room and a type of perspective. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final com.jme3.math.Vector3f initialLocation
private com.jme3.math.Vector3f lookAtPoint
private final boolean isIsometric
private float minVRotation
private float maxVRotation
private float minDistance
private float maxDistance
private float frustumNear
private float frustumFar
private final float fov
private final float aspect
Constructor Detail |
---|
public CameraSettings(com.jme3.math.Vector3f initialLocation, com.jme3.math.Vector3f lookAtPoint, float minVRotation, float maxVRotation, float minDistance, float maxDistance, float aspect, float fov, float frustumNear, float frustumFar, boolean isIsometric)
initialLocation
- the initial locationlookAtPoint
- the look at pointminVRotation
- the min v rotationmaxVRotation
- the max v rotationminDistance
- the min distancemaxDistance
- the max distanceaspect
- the aspectfov
- the fovfrustumNear
- the frustum nearfrustumFar
- the frustum farisIsometric
- the is isometricMethod Detail |
---|
public void configureCamera(com.jme3.renderer.Camera cam)
cam
- the camerapublic com.jme3.math.Vector3f getLookAtPoint()
public float getMaxVRotation()
public float getMinDistance()
public float getMaxDistance()
public float getMinVRotation()
public static CameraSettings getSettings(CameraSettings.Type type, ShowRoom room, com.jme3.system.AppSettings settings)
type
- the type of perspective.room
- the show roomsettings
- the app settings
public static CameraSettings getInRoomSettings(ShowRoom room, com.jme3.system.AppSettings settings)
room
- the show roomsettings
- the app settings
public static CameraSettings getIsometricSettings(ShowRoom room, com.jme3.system.AppSettings settings)
room
- the show roomsettings
- the app settings
public static CameraSettings getOrthographicSettings(ShowRoom room, com.jme3.system.AppSettings settings)
room
- the show roomsettings
- the app settings
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |